package com.fa4j.product.comment.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fa4j.common.data.model.Base;
import com.fa4j.common.data.repository.handler.LongListTypeHandler;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.List;
import lombok.Data;

/**
 * 实体-商品评论
 *
 * @since 2025-11-22 21:06:24
 */
@Data
@TableName(value = "t_product_comment", autoResultMap = true)
@Schema(description = "商品评论")
public class Comment extends Base {

    @TableId(type = IdType.AUTO)
    @Schema(description = "主键")
    private Long id;

    @Schema(description = "商品ID")
    private Integer itemId;

    @Schema(description = "商品规格ID")
    private Integer specId;

    @Schema(description = "评分")
    private Double score;

    @Schema(description = "评论内容")
    private String content;

    @TableField(typeHandler = LongListTypeHandler.class)
    @Schema(description = "评论图片视频列表")
    private List<Long> mediaIds;

    @Schema(description = "订单ID")
    private Long orderId;

    @Schema(description = "评论账户ID")
    private Long accountId;

    @Schema(description = "操作人ID")
    private Long operatorId;

}
